isEmpty

fun isEmpty(candidate: String?): Boolean

Null safe check for "" (empty string).

Return

true if candidate is null or "" (empty string)

Parameters

candidate

the String to evaluate.